package com.gongfutrip.trans.client.common;

public class SendResult {
  private SendStatus sendStatus;
  private String msgId;
  private byte[] body;

  public SendResult(SendStatus sendStatus, String msgId, byte[] body) {
    this.sendStatus = sendStatus;
    this.msgId = msgId;
    this.body = body;
  }

  public SendResult(SendStatus sendStatus) {
    this.sendStatus = sendStatus;
  }

  public SendStatus getSendStatus() {
    return sendStatus;
  }

  public void setSendStatus(SendStatus sendStatus) {
    this.sendStatus = sendStatus;
  }

  public String getMsgId() {
    return msgId;
  }

  public void setMsgId(String msgId) {
    this.msgId = msgId;
  }

  public byte[] getBody() {
    return body;
  }

  public void setBody(byte[] body) {
    this.body = body;
  }

  public enum SendStatus {
    SEND_OK, SYSTEM_ERROR, REQUEST_CODE_NOT_SUPPORTED, SYSTEM_BUSY
  }

  @Override
  public String toString() {
    return sendStatus + " : " + msgId + " data: " + new String(body);
  }
}
